package com.share.homestay.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.share.homestay.annotation.ExcelExport;
import lombok.AllArgsConstructor;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("sys_user")
public class SysUser implements Serializable {
    private static final long serialVersionUID = 5173683656542690609L;
    @TableId(value = "user_id",type = IdType.AUTO)
    private Long userId;
    @ExcelExport(value = "用户名称",sort = 1)
    private String userName;
    private String userRegion;
    @ExcelExport(value = "用户昵称",sort = 2)
    private String nickName;
    private String userType;
    private String email;
    private String phonenumber;
    private String sex;
    private String avatar;
    private String password;
    private String status;
    private String delFlag;
    private String loginIp;
    private Date loginDate;
    private String createBy;
    private Date createTime;
    private String updateBy;
    private Date updateTime;
    private String remark;

    @TableField(exist = false)
    private String startTime;
    @TableField(exist = false)
    private String endTime;
    @TableField(exist = false)
    private String[] postId;
    @TableField(exist = false)
    private String[] roleId;
    @TableField(exist = false)
    private String postIdBack;
    @TableField(exist = false)
    private String roleIdBack;

}
